package com.daisy.controller;

import com.daisy.dto.BaseResultDTO;
import com.daisy.pojo.Login;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * @version: V1.0
 * @author: daisy
 * @className: AdminController
 * @packageName: com.daisy.controller
 * @description: 用户控制器
 * @data: 2020-06-11 20:18
 **/
@RestController
@RequestMapping("admin")
public class AdminController {

    @PostMapping("login")
    public BaseResultDTO login(Login login) {
        BaseResultDTO dto = new BaseResultDTO();
        dto.setStatus(200);
        dto.setData(login);
        dto.setMsg("登陆成功");
        return dto;
    }

}
